/* gatewayMib.c - IDB+ Module source for gatewayMib.mi2. */

/* Copyright 2013 Wind River, Inc. */
//#include "copyright_wrs.h"

/*
modification history
--------------------
xxx,01Aug13,idb Created by IDBGEN. Ver 2.28
%%BeginUserCode gatewayMib_Modifications
%%EndUserCode   gatewayMib_Modifications
*/

/*
DESCRIPTION
This module defines the IDB+ structures and IDB+ Object handler routines to
access the IDB+ objects defined in gatewayMib.mi2.

INCLUDE FILES: gatewayMib.h
*/

/* Includes */
#include "neos_vx_win.h"
#include "idbLib.h"
#include "gatewayMib.h"
#include "jialianMib_function.h"

/* %%BeginUserCode gatewayMib_IncludeFiles */
/* %%EndUserCode   gatewayMib_IncludeFiles */

/* Defines */
/* %%BeginUserCode gatewayMib_Defines */
/* %%EndUserCode   gatewayMib_Defines */

/* Globals */
/* %%BeginUserCode gatewayMib_Globals */
/* %%EndUserCode   gatewayMib_Globals */

/* Locals */
LOCAL char * moduleName = "gatewayMib";
/* %%BeginUserCode gatewayMib_Locals */
/* %%EndUserCode   gatewayMib_Locals */

/* Prototypes */
LOCAL STATUS gatewayMibScalarHandler ( idbRequest_t request, idb_t * idb );
LOCAL STATUS currentTempEntryTableHandler ( idbRequest_t request, idb_t * idb );

/* %%BeginUserCode gatewayMib_Prototypes */
/* %%EndUserCode   gatewayMib_Prototypes */


/****************************************************************************
* IDB+ Module Object Descriptors
*/
//unsigned char Myoid[11]={1,3,6,1,4,1,41467,1,101,1,1};

LOCAL idbObjDesc_t mainBedroom_objDesc[] = {
  { mainBedroom, 1, 4, /* localId=0  1.3.6.1.4.1.41467.1.101.1.1 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:mainBedroom" },
  { 0 }
};

LOCAL idbObjDesc_t door_objDesc[] = {
  { door, 2, 4, /* localId=1  1.3.6.1.4.1.41467.1.101.1.2 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:door" },
  { 0 }
};

LOCAL idbObjDesc_t mainToilet_objDesc[] = {
  { mainToilet, 3, 4, /* localId=2  1.3.6.1.4.1.41467.1.101.1.3 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:mainToilet" },
  { 0 }
};

LOCAL idbObjDesc_t bookRoom_objDesc[] = {
  { bookRoom, 4, 4, /* localId=3  1.3.6.1.4.1.41467.1.101.1.4 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:bookRoom" },
  { 0 }
};

LOCAL idbObjDesc_t familyRoom_objDesc[] = {
  { familyRoom, 5, 4, /* localId=4  1.3.6.1.4.1.41467.1.101.1.5 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:familyRoom" },
  { 0 }
};

LOCAL idbObjDesc_t kidRoom_objDesc[] = {
  { kidRoom, 6, 4, /* localId=5  1.3.6.1.4.1.41467.1.101.1.6 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:kidRoom" },
  { 0 }
};

LOCAL idbObjDesc_t parlorDrop_objDesc[] = {
  { parlorDrop, 7, 4, /* localId=6  1.3.6.1.4.1.41467.1.101.1.7 */
    { 0, 0 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:parlorDrop" },
  { 0 }
};

LOCAL idbObjDesc_t parlorCylinder_objDesc[] = {
  { parlorCylinder, 8, 4, /* localId=7  1.3.6.1.4.1.41467.1.101.1.8 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:parlorCylinder" },
  { 0 }
};

LOCAL idbObjDesc_t parlorWall_objDesc[] = {
  { parlorWall, 9, 4, /* localId=8  1.3.6.1.4.1.41467.1.101.1.9 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:parlorWall" },
  { 0 }
};

LOCAL idbObjDesc_t gate_objDesc[] = {
  { gate, 10, 4, /* localId=9  1.3.6.1.4.1.41467.1.101.1.10 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:gate" },
  { 0 }
};

LOCAL idbObjDesc_t elevator_objDesc[] = {
  { elevator, 11, 4, /* localId=10  1.3.6.1.4.1.41467.1.101.1.11 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:elevator" },
  { 0 }
};

LOCAL idbObjDesc_t garden_objDesc[] = {
  { garden, 12, 4, /* localId=11  1.3.6.1.4.1.41467.1.101.1.12 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:garden" },
  { 0 }
};

LOCAL idbObjDesc_t diningRoom_objDesc[] = {
  { diningRoom, 13, 4, /* localId=12  1.3.6.1.4.1.41467.1.101.1.13 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:diningRoom" },
  { 0 }
};

LOCAL idbObjDesc_t kitchen_objDesc[] = {
  { kitchen, 14, 4, /* localId=13  1.3.6.1.4.1.41467.1.101.1.14 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:kitchen" },
  { 0 }
};

LOCAL idbObjDesc_t guestRoom_objDesc[] = {
  { guestRoom, 15, 4, /* localId=14  1.3.6.1.4.1.41467.1.101.1.15 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:guestRoom" },
  { 0 }
};

LOCAL idbObjDesc_t publicToilet_objDesc[] = {
  { publicToilet, 16, 4, /* localId=15  1.3.6.1.4.1.41467.1.101.1.16 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:publicToilet" },
  { 0 }
};

LOCAL idbObjDesc_t nurseRoom_objDesc[] = {
  { nurseRoom, 17, 4, /* localId=16  1.3.6.1.4.1.41467.1.101.1.17 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:nurseRoom" },
  { 0 }
};

LOCAL idbObjDesc_t setTemp_objDesc[] = {
  { setTemp, 1, 8, /* localId=17  1.3.6.1.4.1.41467.1.101.2.1 */
    { 0, 0 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:setTemp" },
  { 0 }
};

LOCAL idbObjDesc_t datumTemp_objDesc[] = {
  { datumTemp, 2, 4, /* localId=18  1.3.6.1.4.1.41467.1.101.2.2 */
    { 0, 0 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:datumTemp" },
  { 0 }
};

LOCAL idbObjDesc_t tempModel_objDesc[] = {
  { tempModel, 3, 4, /* localId=19  1.3.6.1.4.1.41467.1.101.2.3 */
    { 0, 1 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:tempModel" },
  { 0 }
};

LOCAL idbObjDesc_t aircondOnOff_objDesc[] = {
  { aircondOnOff, 4, 4, /* localId=20  1.3.6.1.4.1.41467.1.101.2.4 */
    { 0, 3 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:aircondOnOff" },
  { 0 }
};

LOCAL idbObjDesc_t aircondValve_objDesc[] = {
  { aircondValve, 5, 4, /* localId=21  1.3.6.1.4.1.41467.1.101.2.5 */
    { 0, 0 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:aircondValve" },
  { 0 }
};

LOCAL idbObjDesc_t floorHeat_objDesc[] = {
  { floorHeat, 6, 4, /* localId=22  1.3.6.1.4.1.41467.1.101.2.6 */
    { 0, 0 }, IDB_INTEGER, (IDB_READ|IDB_WRITE|IDB_SET),
    (IDB_VALID), gatewayMibScalarHandler,
    (char *)0, "gatewayMib:floorHeat" },
  { 0 }
};

LOCAL idbObjDesc_t currentTempEntry_objDesc[] = {
  { index, 1, 4, /* localId=23  1.3.6.1.4.1.41467.1.101.2.7.1.1 */
    { 0, 0 }, IDB_INTEGER, IDB_READ,
    (IDB_VALID), currentTempEntryTableHandler,
    (char *)0, "gatewayMib:index" },
  { currentTemp, 2, 4, /* localId=24  1.3.6.1.4.1.41467.1.101.2.7.1.2 */
    { 0, 0 }, IDB_INTEGER, IDB_READ,
    (IDB_VALID), currentTempEntryTableHandler,
    (char *)0, "gatewayMib:currentTemp" },
  { 0 }
};

/*****************************************************************************
* IDB+ Module OID Table
*
* The OID list below (e.g.,{1,3,6,1, ...}) is the OID prefix minus the
* last sub-identifier.  The last sub-identifier is found in the
* object descriptor idbObjDesc_t structure.
*/

LOCAL idbOidTable_t oidTable[] = {
  /*   0: Scalar Object -- mainBedroom */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    mainBedroom_objDesc },

  /*   1: Scalar Object -- door */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    door_objDesc },

  /*   2: Scalar Object -- mainToilet */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    mainToilet_objDesc },

  /*   3: Scalar Object -- bookRoom */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    bookRoom_objDesc },

  /*   4: Scalar Object -- familyRoom */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    familyRoom_objDesc },

  /*   5: Scalar Object -- kidRoom */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    kidRoom_objDesc },

  /*   6: Scalar Object -- parlorDrop */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    parlorDrop_objDesc },

  /*   7: Scalar Object -- parlorCylinder */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    parlorCylinder_objDesc },

  /*   8: Scalar Object -- parlorWall */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    parlorWall_objDesc },

  /*   9: Scalar Object -- gate */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    gate_objDesc },

  /*  10: Scalar Object -- elevator */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    elevator_objDesc },

  /*  11: Scalar Object -- garden */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    garden_objDesc },

  /*  12: Scalar Object -- diningRoom */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    diningRoom_objDesc },

  /*  13: Scalar Object -- kitchen */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    kitchen_objDesc },

  /*  14: Scalar Object -- guestRoom */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    guestRoom_objDesc },

  /*  15: Scalar Object -- publicToilet */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    publicToilet_objDesc },

  /*  16: Scalar Object -- nurseRoom */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,1}, 11,   /*lint !e785 */
    0, 1, { 0 },
    nurseRoom_objDesc },

  /*  17: Scalar Object -- setTemp */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,2}, 11,   /*lint !e785 */
    0, 1, { 0 },
    setTemp_objDesc },

  /*  18: Scalar Object -- datumTemp */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,2}, 11,   /*lint !e785 */
    0, 1, { 0 },
    datumTemp_objDesc },

  /*  19: Scalar Object -- tempModel */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,2}, 11,   /*lint !e785 */
    0, 1, { 0 },
    tempModel_objDesc },

  /*  20: Scalar Object -- aircondOnOff */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,2}, 11,   /*lint !e785 */
    0, 1, { 0 },
    aircondOnOff_objDesc },

  /*  21: Scalar Object -- aircondValve */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,2}, 11,   /*lint !e785 */
    0, 1, { 0 },
    aircondValve_objDesc },

  /*  22: Scalar Object -- floorHeat */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,2}, 11,   /*lint !e785 */
    0, 1, { 0 },
    floorHeat_objDesc },

  /*  23: Table Object -- currentTempEntry */
  { IDB_SNMP_STRUCT, {1,3,6,1,4,1,41467,1,101,2,7,1}, 13,   /*lint !e785 */
    1, 1, { "gatewayMib:hrTime" }, /*lint !e785 */
    currentTempEntry_objDesc },

  { IDB_TERMINATOR }
};

/*****************************************************************************
* IDB+ Module Translate Table
*/

LOCAL idbXlateTable_t xlateTable[] = {
    { &oidTable[  0], &mainBedroom_objDesc[0] },
    { &oidTable[  1], &door_objDesc[0] },
    { &oidTable[  2], &mainToilet_objDesc[0] },
    { &oidTable[  3], &bookRoom_objDesc[0] },
    { &oidTable[  4], &familyRoom_objDesc[0] },
    { &oidTable[  5], &kidRoom_objDesc[0] },
    { &oidTable[  6], &parlorDrop_objDesc[0] },
    { &oidTable[  7], &parlorCylinder_objDesc[0] },
    { &oidTable[  8], &parlorWall_objDesc[0] },
    { &oidTable[  9], &gate_objDesc[0] },
    { &oidTable[ 10], &elevator_objDesc[0] },
    { &oidTable[ 11], &garden_objDesc[0] },
    { &oidTable[ 12], &diningRoom_objDesc[0] },
    { &oidTable[ 13], &kitchen_objDesc[0] },
    { &oidTable[ 14], &guestRoom_objDesc[0] },
    { &oidTable[ 15], &publicToilet_objDesc[0] },
    { &oidTable[ 16], &nurseRoom_objDesc[0] },
    { &oidTable[ 17], &setTemp_objDesc[0] },
    { &oidTable[ 18], &datumTemp_objDesc[0] },
    { &oidTable[ 19], &tempModel_objDesc[0] },
    { &oidTable[ 20], &aircondOnOff_objDesc[0] },
    { &oidTable[ 21], &aircondValve_objDesc[0] },
    { &oidTable[ 22], &floorHeat_objDesc[0] },
    { &oidTable[ 23], &currentTempEntry_objDesc[0] },
    { &oidTable[ 23], &currentTempEntry_objDesc[1] },

    { 0 }
};

/******************************************************************************
* User Local Functions.
*/

/* %%BeginUserCode gatewayMib_UserFunctions */
/* %%EndUserCode   gatewayMib_UserFunctions */


/****************************************************************************
*
* gatewayMibInit - initialize/register gatewayMib and objects.
*
* This routine initializes the modules IDB routines.
*
* RETURNS: OK or ERROR
*
* ERRNO: N/A
*/

STATUS gatewayMibInit
    (
    void * parm1,
    void * parm2
    )
    {
    STATUS    rc;

    /* %%BeginUserCode gatewayMibInit_Prolog */
    /* %%EndUserCode   gatewayMibInit_Prolog */

    rc = SNMP_OK;

    /* %%BeginUserCode gatewayMibInit_Body */
    /* %%EndUserCode gatewayMibInit_Body */

    /* Register the module's information with IDB+ engine */
    idbModuleRegister( moduleName, &xlateTable[0] );

    /* %%BeginUserCode gatewayMibInit_Epilog */
    /* %%EndUserCode   gatewayMibInit_Epilog */

    return( rc );
    }

/******************************************************************************
*
* gatewayMibTerminate - Terminate gatewayMib and objects.
*
* This routine de-initializes the IDB module functions.
*
* RETURNS: OK or ERROR
*
* ERRNO: N/A
*/

STATUS gatewayMibTerminate
    (
    void * parm
    )
    {
    STATUS    rc;

    /* %%BeginUserCode gatewayMibTerminate_Prolog */
    /* %%EndUserCode   gatewayMibTerminate_Prolog */

    rc = SNMP_OK;

    /* De-register the module's information with IDB+ engine */
    idbModuleDeRegister( moduleName );

    /* %%BeginUserCode gatewayMibTerminate_Epilog */
    /* %%EndUserCode   gatewayMibTerminate_Epilog */

    return( rc );
    }

/******************************************************************************
*
* gatewayMibScalarHandler - handles all scalar objects.
*
* This routine handles all scalar objects for this IDB+ Module.
*
* RETURNS: OK or ERROR
*
* ERRNO: N/A
*/

LOCAL STATUS gatewayMibScalarHandler
    (
    idbRequest_t request,
    idb_t * idb
    )
    {
    STATUS    rc;

    /* %%BeginUserCode gatewayMibScalarHandler_Prolog */
    /* %%EndUserCode   gatewayMibScalarhandler_Prolog */

    rc = SNMP_OK;

    /* Validate the Scalar indexSubIdCount and instance value */
    if ( idbScalarValidate( request, idb ) == SNMP_ERROR )
        return idbErrorRequestMap( request );

    switch( idb->localId )
    {
    default:
        rc = idbErrorNoSuchInstance();
        break;

    /* ================================================================= */
    /*
    * EmainBedroom_off 0
    * EmainBedroom_on 1
    */
    case mainBedroom:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode mainBedroom_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.1";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			
//			Myoid[10]=1;
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   mainBedroom_Body */
        }
        break;

    /* ================================================================= */
    /*
    * Edoor_off 0
    * Edoor_on 1
    */
    case door:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode door_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.2";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:

			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   door_Body */
        }
        break;

    /* ================================================================= */
    /*
    * EmainToilet_off 0
    * EmainToilet_on 1
    */
    case mainToilet:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode mainToilet_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.3";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   mainToilet_Body */
        }
        break;

    /* ================================================================= */
    /*
    * EbookRoom_off 0
    * EbookRoom_on 1
    */
    case bookRoom:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode bookRoom_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.4";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   bookRoom_Body */
        }
        break;

    /* ================================================================= */
    /*
    * EfamilyRoom_off 0
    * EfamilyRoom_on 1
    */
    case familyRoom:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode familyRoom_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.5";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   familyRoom_Body */
        }
        break;

    /* ================================================================= */
    /*
    * EkidRoom_off 0
    * EkidRoom_on 1
    */
    case kidRoom:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode kidRoom_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.6";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   kidRoom_Body */
        }
        break;

    /* ================================================================= */
    case parlorDrop:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode parlorDrop_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.7";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            break;

        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   parlorDrop_Body */
        }
        break;

    /* ================================================================= */
    /*
    * EparlorCylinder_off 0
    * EparlorCylinder_on 1
    */
    case parlorCylinder:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode parlorCylinder_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.8";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   parlorCylinder_Body */
        }
        break;

    /* ================================================================= */
    /*
    * EparlorWall_off 0
    * EparlorWall_on 1
    */
    case parlorWall:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode parlorWall_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.9";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   parlorWall_Body */
        }
        break;

    /* ================================================================= */
    /*
    * Egate_off 0
    * Egate_on 1
    */
    case gate:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode gate_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.10";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   gate_Body */
        }
        break;

    /* ================================================================= */
    /*
    * Eelevator_off 0
    * Eelevator_on 1
    */
    case elevator:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode elevator_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.11";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   elevator_Body */
        }
        break;

    /* ================================================================= */
    /*
    * Egarden_off 0
    * Egarden_on 1
    */
    case garden:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode garden_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.12";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   garden_Body */
        }
        break;

    /* ================================================================= */
    /*
    * EdiningRoom_off 0
    * EdiningRoom_on 1
    */
    case diningRoom:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode diningRoom_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.13";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   diningRoom_Body */
        }
        break;

    /* ================================================================= */
    /*
    * Ekitchen_off 0
    * Ekitchen_on 1
    */
    case kitchen:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode kitchen_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.14";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   kitchen_Body */
        }
        break;

    /* ================================================================= */
    /*
    * EguestRoom_off 0
    * EguestRoom_on 1
    */
    case guestRoom:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode guestRoom_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.15";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   guestRoom_Body */
        }
        break;

    /* ================================================================= */
    /*
    * EpublicToilet_off 0
    * EpublicToilet_on 1
    */
    case publicToilet:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode publicToilet_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.16";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   publicToilet_Body */
        }
        break;

    /* ================================================================= */
    /*
    * EnurseRoom_off 0
    * EnurseRoom_on 1
    */
    case nurseRoom:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode nurseRoom_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.1.17";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   nurseRoom_Body */
        }
        break;

    /* ================================================================= */
    case setTemp:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode setTemp_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.2.1";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            break;

        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   setTemp_Body */
        }
        break;

    /* ================================================================= */
    case datumTemp:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode datumTemp_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.2.2";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            break;

        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
            break;
			rc=jilian_set(Myoid,(idb->pValueBuf));
        }

        /* %%EndUserCode   datumTemp_Body */
        }
        break;

    /* ================================================================= */
    /*
    * EtempModel_warm 0
    * EtempModel_cold 1
    */
    case tempModel:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode tempModel_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.2.3";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 1) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   tempModel_Body */
        }
        break;

    /* ================================================================= */
    /*
    * EaircondOnOff_off 0
    * EaircondOnOff_low 1
    * EaircondOnOff_med 2
    * EaircondOnOff_hig 3
    */
    case aircondOnOff:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode aircondOnOff_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.2.4";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            if ( (ulongGet(idb) < 0) || (ulongGet(idb) > 3) )
                rc = idbErrorInvalidRange();
            else if ( idb->valueLen > 4 )
                rc = idbErrorInvalidLength();
            break;


        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   aircondOnOff_Body */
        }
        break;

    /* ================================================================= */
    case aircondValve:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode aircondValve_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.2.5";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            break;

        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
            break;
        }

        /* %%EndUserCode   aircondValve_Body */
        }
        break;

    /* ================================================================= */
    case floorHeat:    /* INTEGER, read-write */
        {
        /* %%BeginUserCode floorHeat_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.2.6";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextScalarIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
			rc = jilian_get(Myoid,idb->pValueBuf);
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            break;

        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
			rc=jilian_set(Myoid,(idb->pValueBuf));
            break;
        }

        /* %%EndUserCode   floorHeat_Body */
        }
        break;

    }

    /* %%BeginUserCode gatewayMibScalar_Epilog */
    /* %%EndUserCode   gatewayMibScalar_Epilog */

    return( rc );
    }

/******************************************************************************
*
* currentTempEntryTableHandler - handles table objects.
*
* This routine handles all objects for this table.
*
* RETURNS: OK or ERROR
*
* ERRNO: N/A
*/

LOCAL STATUS currentTempEntryTableHandler
    (
    idbRequest_t request,
    idb_t * idb
    )
    {
    STATUS    rc;

    /* %%BeginUserCode currentTempEntryTableHandler_Prolog */
    /* %%EndUserCode   currentTempEntryTablehandler_Prolog */

    rc = SNMP_OK;

    switch( idb->localId )
    {
    default:
        rc = idbErrorNoSuchInstance();
        break;

    /* ================================================================= */
    case index:    /* INTEGER, read-only */
        {
        /* %%BeginUserCode index_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.2.7.1.1";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextSimpleIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            break;

        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
            break;
        }

        /* %%EndUserCode   index_Body */
        }
        break;

    /* ================================================================= */
    case currentTemp:    /* INTEGER, read-only */
        {
        /* %%BeginUserCode currentTemp_Body */
		char *Myoid="1.3.6.1.4.1.41467.1.101.2.7.1.2";
        switch ( request )
        {
        case IDB_GET_NEXT:
            /* Check to make sure the next object is valid. */
            rc = idbNextSimpleIndex(idb);

            /* FALLTHRU */
        case IDB_GET:
            if ( rc == SNMP_OK )
            {
                idb->valueLen = 4;
            }

            break;

        case IDB_VALIDATE:
            break;

        case IDB_SET_NVM:
            break;

        case IDB_COMMIT:
            break;
        }

        /* %%EndUserCode   currentTemp_Body */
        }
        break;

    }

    /* %%BeginUserCode currentTempEntryTable_Epilog */
    /* %%EndUserCode   currentTempEntryTable_Epilog */

    return( rc );
    }

